package com.zhongli.devplatform.service.imp.sys;

import com.zhongli.devplatform.bean.PageVO;
import com.zhongli.devplatform.dto.sys.DictionaryDirectoryDTO;
import com.zhongli.devplatform.query.sys.DictionaryDirectoryQuery;
import com.zhongli.devplatform.vo.sys.DictionaryDirectoryVO;
import com.zhongli.devplatform.vo.sys.DictionaryItemVO;

import java.util.List;

public interface IDictionaryDirectoryService {


    static final String CACHE_KEY = "_dictionary_directory";

    PageVO<DictionaryDirectoryVO> listPage(DictionaryDirectoryQuery query);

    void putCache();

    void save(DictionaryDirectoryDTO dictionaryDirectoryDTO);

    void delete(List<Long> ids);

    Boolean isExist(DictionaryDirectoryQuery query);

    String getName(String code, String value);

    String getValue(String code, String name);

    List<DictionaryItemVO> getItems(String code);


}
